﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("c_guid", Name = "idxcguid")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_device_minimachinecommand_log
{
    [Key]
    public long c_id { get; set; }

    [StringLength(100)]
    public string c_deviceid { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? c_add_time { get; set; }

    public string c_guid { get; set; }

    public int? c_status { get; set; }

    /// <summary>
    /// 0已发送，2已回复
    /// </summary>
    [StringLength(255)]
    public string c_gw_guid { get; set; }

    /// <summary>
    /// 返回响应信息
    /// </summary>
    public string c_return_msg { get; set; }

    /// <summary>
    /// 指令
    /// </summary>
    [StringLength(500)]
    public string c_command { get; set; }

    /// <summary>
    /// 返回码
    /// </summary>
    [StringLength(50)]
    public string c_return_code { get; set; }

    [StringLength(50)]
    public string c_return_time { get; set; }

    [StringLength(50)]
    public string c_d_guid { get; set; }

    /// <summary>
    /// iot_device_gateway code
    /// </summary>
    [StringLength(50)]
    public string c_gw_code { get; set; }
}
